﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheatreManagementSystem
{
   public class SeatDoesNotExistException:ApplicationException
    {
       private Seat seat;
       public Seat Seat 
       {
           get
           {
               return this.Seat;
           }
       }
       public SeatDoesNotExistException(Seat seat):base(String.Format("The seat does not exist! Row: {0}, Seat: {1}", seat.Rows, seat.Cols))
       {
           this.seat = seat;
       }
       public SeatDoesNotExistException(string message)
           :base(message)
       { }
    }
}
